<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:p="http://primefaces.org/ui"
       > 
<h:head>
  
 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
		<title>Insert title here</title>
		
</h:head>  	  
  <h:body>
  <center>

	<h:form>
	 
  <p:panelGrid columns="2"> 
   <f:facet name="header">  
        Cadastro Cliente 
    </f:facet>  

    <h:outputLabel value="Nome do Cliente" />
    <p:inputText id="nomeCliente" value="#{clienteBean.clienteSelecionado.nome}"  />
  
    <h:outputLabel value="CPF" />  
    <p:inputText id="CPF" value="#{clienteBean.clienteSelecionado.CPF}"  />  
  
  <h:outputLabel value="Endereco" />  
    <p:inputText value="#{clienteBean.clienteSelecionado.endereco}" label="Firstname" />  
  
  
  <h:outputLabel value="Email" />  
    <p:inputText  value="#{clienteBean.clienteSelecionado.email}" label="Firstname" />  
  
  
  <f:facet name="footer">  
     
     </f:facet>  
  </p:panelGrid>  
  <p:growl id="messages"/> 
   <p:commandButton  value="Cadastrar" action="#{clienteBean.salvar}" update="messages" icon="ui-icon-disk" /> 
  </h:form>
	
	
	
	
      </center>
  </h:body>	  
      
    
      


</html>